#==============================================================================
# realmd
#==============================================================================
CMAKE_MINIMUM_REQUIRED(VERSION 2.6)
SET(CMAKE_ALLOW_LOOSE_LOOP_CONSTRUCTS ON)

PROJECT(realmd)

#------------------------------------------------------------------------------
INCLUDE_DIRECTORIES(
    ${PROJECT_SOURCE_DIR}
)

SET(realmd_SRC
    Realmd.h
    RealmdSocket.h
    RealmdSocket.cc
    RealmdSocketFactory.h
    RealmList.h
    RealmList.cc
    
    Main.cc
)

#------------------------------------------------------------------------------
ADD_EXECUTABLE(realmd ${realmd_SRC})
TARGET_LINK_LIBRARIES(realmd yxs shared)

IF(WIN32)
TARGET_LINK_LIBRARIES(realmd libevent ws2_32 libmysql libeay32)
ELSE()
TARGET_LINK_LIBRARIES(realmd pthread event)
ENDIF()
